package com.aosd.project.aonotepad.domain.search;

import java.util.List;

import com.aosd.project.aonotepad.domain.Note;

public abstract class SearchFilterDecorator implements SearchFilter
{

	private SearchFilter innerFilter;
	
	public SearchFilterDecorator(SearchFilter filter)
	{
		innerFilter = filter;
	}
	
	public abstract List<Note> doFind(List<Note> onNotes);
	
	@Override
	public List<Note> find(List<Note> onNotes)
	{
		List<Note> notes = doFind(onNotes);
		return innerFilter.find(notes);
	}

}
